﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapMaker.Engine.Core.Models
{
    public class Animation : DataModel
    {
        public int ID { get; set; }

        public string Name { get; set; }

        public string Animation1Name { get; set; }

        public int Animation1Hue { get; set; }

        public string Animation2Name { get; set; }

        public int Animation2Hue { get; set; }

        public int Position { get; set; }

        public int FrameMax { get; set; }

        public List<Frame> Frames { get; set; }

        public List<Timing> Timings { get; set; }

        public class Frame
        {
            public int CellMax { get; set; }

            public object CellData { get; set; }
        }

        public class Timing
        {
            public int Frame { get; set; }

            public Reference<SoundEffect> SoundEffect { get; set; }

            public int FlashScope { get; set; }

            public object FlashColor { get; set; }

            public int FlashDuration { get; set; }
        }
    }
}
